package com.fsy.fdms.user;

import com.alibaba.dubbo.config.annotation.Reference;
import com.fsy.ums.UserManagement;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;

@Slf4j
@Service
public class UmsAgent {
    /**
     * 使用dubbo的注解 com.alibaba.dubbo.config.annotation.Reference。
     * 进行远程调用service
     */
    @Reference(check = false)
    private UserManagement userManagement;

    public String login(String username, String password) {
        return userManagement.login(username, password);
    }
}
